package com.blb.educourseservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.pojo.Course;


import java.util.List;

public interface CourseMapper extends BaseMapper<Course> {
        /**
         * 查询所有课程
         * @return
         */
        List<Course> selectAllCourses();

        /**
         * 按id查询课程
         * @param id
         * @return
         */
        Course selectCourseById(Long id);

        /**
         * 按id查询课程详情
         * @param id
         * @return
         */
        Course selectCourseDetailsById(Long id);

}
